package com.lc.dubbo.provider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author liuc
 * @date 2021/6/17
 * @description
 **/
public class ProviderApp {
    public static void main(String[] args) throws InterruptedException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConf.class);
        context.start();
        Thread.currentThread().join();
    }

    @Configuration
    @EnableDubbo(scanBasePackages = "com.lc.api.impl")
    @PropertySource("classpath:dubbo-provider.properties")
    static class ProviderConf{

    }
}
